package three;

public class test3 {
public void testPassRef(Point p) {
		
		p.x=12;
		p.y=13;
		System.out.println(p);
	}

public void testtt(int x) {
	x=20;
	System.out.println(x);
}

	public static void main(String[] args) {
		test3 bpv=new test3();
		Point p=new Point();
		p.x=11;
		p.y=11;
		System.out.println(p.x+"  "+p.y);
		System.out.println(p);
		bpv.testPassRef(p);
		bpv.testtt(p.x);
		System.out.println(p.x+"  "+p.y);
		System.out.println(p);
		
	}
	

}
